import { VXETable } from 'vxe-table'
export const message = (msg,type=1)=>{
    switch(type){
        case 2:
            VXETable.modal.message({
                status: 'success',
                top:window.innerHeight/2.3,
                id: 'unique1',
                content: msg
            })

            break;
        case 3:
            VXETable.modal.message({
                status: 'error',
                top:window.innerHeight/2.3,
                id: 'unique1',
                content: msg
            })
            break;
        case 4:
            VXETable.modal.message({
                status: 'warning',
                top:window.innerHeight/2.3,
                id: 'unique1',
                content: msg
            })
            break;
        default:
            VXETable.modal.message({
                status: 'warning',
                top:window.innerHeight/2.3,
                id: 'unique1',
                content: msg
            })
    }
}
